<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/srceasyui.jsp"%>

</head>
<body>
	<div>
		<table class="formTable">
			<tr>
				<td>快递企业：</td>
				<td>
					<input id="expressNameView" name="expressNameView" class="easyui-validatebox" data-options="width: 250" value="">
				</td>
			</tr>
			<tr>
				<td>运单号：</td>
				<td>
					<input id="deliverySnView" name="deliverySnView" class="easyui-validatebox" data-options="width: 250" value="">
				</td>
			</tr>
		</table>
		<br/>
		<table id="dg2"></table>

	</div>

<script type="text/javascript">
	var dg2;

	var obj = $('#dlgview').dialog('options');
	var queryParams = obj["queryParams"];
	var deliveryId = queryParams["deliveryId"];
	var expressName = queryParams["expressName"];
	var deliverySn = queryParams["deliverySn"];

	$("#expressNameView").val(expressName);
	$("#deliverySnView").val(deliverySn);

	$(function(){
		var obj = $('#dlgview').dialog('options');
		var queryParams = obj["queryParams"];
		deliveryId = queryParams["deliveryId"];

		dg2=$('#dg2').datagrid({
			method: "get",
			// url:'${ctx}/business/seller/json?filter_EQR_sellerStatus=0',
			url:'${ctx}/business/order/deliverygoodslistjson/' + deliveryId,
			// fit : true,
			height: 300,
			fitColumns : true,
			border : true,
			striped:true,
			idField : 'id',
			pagination:false,
			rownumbers:true,
			singleSelect:true,
			columns:[[
				{field:'recId',title:'id', hidden: true},
				{field:'goodsId',title:'商品名称',width:100},
				{field:'goodsPrice',title:'订单中价格', width:100},
				{field:'goodsNumber',title:'订单中数量',width:100},
				{field:'speNote',title:'特产备注',width:100}
			]],
			enableHeaderClickMenu: false,
			enableHeaderContextMenu: false,
			enableRowContextMenu: false
		});
	});

</script>
</body>
</html>